﻿using System;
using System.Configuration;

namespace Sirocco.Core
{
    public class DirectoryConfigurationElement : ConfigurationElement
    {
        [ConfigurationProperty("name")]
        public String Name
        {
            get { return (String)this["name"]; }
            set { this["name"] = value; }
        }

        [ConfigurationProperty("value")]
        public String Value
        {
            get { return (String)this["value"]; }
            set { this["value"] = value; }
        }

        public DirectoryConfigurationElement() { }

        public DirectoryConfigurationElement(String newName, String newValue)
        {
            Name = newName;
            Value = newValue;
        }

        public DirectoryConfigurationElement(string elementName)
        {
            Name = elementName;
        }
    }
}
